<?php

namespace utils;

class out {
		
	public static function success($app, $data) {
		$result = (object)array(
				'success' => true,
				'result' => $data
			);
		return $app->json($result);
    }

    public static function fail($app, $data) {
		$result = (object)array(
				'success' => false,
				'result' => $data
			);
		return $app->json($result);
    }
}

